<?php defined('_JEXEC') or die('Restricted access'); 
?>
<form action="index.php" method="post" name="adminForm">
<div id="editcell">
    <table class="adminlist">
    <thead>
        <tr>
        	<th width="20">
			    <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $this->items ); ?>);" />
			</th>
            <th width="5">
                <?php echo JText::_( 'ID' ); ?>
            </th>
            <th>
                <?php echo JText::_( 'Taobao Store Name' ); ?>
            </th>
            <th>
                <?php echo JText::_( 'Taobao Store AppKey' ); ?>
            </th>
            <th>
                <?php echo JText::_( 'Taobao Store AppSecret' ); ?>
            </th>
            <th>
                <?php echo JText::_( 'Taobao Store Seller Name' ); ?>
            </th>
            <th>
                <?php echo JText::_( 'Taobao Store Seller Area Id' ); ?>
            </th>
            <th>
                <?php echo JText::_( 'Taobao Store Seller Address' ); ?>
            </th>
            <th>
                <?php echo JText::_( 'Taobao Store Seller Zip' ); ?>
            </th>
            <th>
                <?php echo JText::_( 'Taobao Store Seller Phone' ); ?>
            </th>
            <th>
                <?php echo JText::_( 'Taobao Store Status' ); ?>
            </th>
        </tr>            
    </thead>
    <?php
    $k = 0;
    for ($i=0, $n=count( $this->items ); $i < $n; $i++)
    {
        $row =& $this->items[$i];
        $checked    = JHTML::_( 'grid.id', $i, $row->id );
        $link = 'index.php?option=com_orders&controller=store&task=editstore&cid[]='. $row->id ;
        ?>
        <tr class="<?php echo "row$k"; ?>">        	
			<td>
			    <?php echo $checked; ?>
			</td>
            <td>
                <?php echo $row->id; ?>
            </td>
            <td>
                <a href="<?php echo $link; ?>"><?php echo $row->name; ?></a>
            </td>
            <td>
                <a href="<?php echo $link; ?>"><?php echo $row->appKey; ?></a>
            </td>
            <td>
                <a href="<?php echo $link; ?>"><?php echo $row->appSecret; ?></a>
            </td>
            <td>
                <a href="<?php echo $link; ?>"><?php echo $row->seller_name; ?></a>
            </td>
            <td>
                <a href="<?php echo $link; ?>"><?php echo $row->seller_area_id; ?></a>
            </td>
            <td>
                <a href="<?php echo $link; ?>"><?php echo $row->seller_address; ?></a>
            </td>
            <td>
                <a href="<?php echo $link; ?>"><?php echo $row->seller_zip; ?></a>
            </td>
            <td>
                <a href="<?php echo $link; ?>"><?php echo $row->seller_phone; ?></a>
            </td>
            <td>
                <?php if ($row->status==1){echo JText::_( 'Open' );}else{echo JText::_( 'Close' );}?>
            </td>
        </tr>
        <?php
        $k = 1 - $k;
    }
    ?>
    	<tr>
	    	<td colspan="11">
	    	<?php 
	    	//$this->pagination->limit=15;
	    	echo $this->pagination->getListFooter(); ?>
	    	</td>
    	</tr>
    </table>
</div>
<input type="hidden" name="option" value="com_orders" />
<input type="hidden" name="task" value="mngstore" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="controller" value="store" />
</form>
